using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._MaritimeTools._S._57._Management
{
    /// <summary>
    /// <para>Import S-57 To Geodatabase</para>
    /// <para>Imports an S-57 file into an ArcGIS Maritime geodatabase. Sources that can be imported include Electronic Navigational Chart (ENC), Additional Military layers (AML), and Inland Electronic Navigational Chart (IENC).</para>
    /// <para>将 S-57 文件导入 ArcGIS Maritime 地理数据库。可以导入的源包括电子航海图 （ENC）、附加军事图层 （AML） 和内陆电子航海图 （IENC）。</para>
    /// </summary>    
    [DisplayName("Import S-57 To Geodatabase")]
    public class ImportS57ToGeodatabase : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ImportS57ToGeodatabase()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_base_cell">
        /// <para>Input Base S-57 Cell</para>
        /// <para>The base cell file (*.000).</para>
        /// <para>基本单元格文件 （*.000）。</para>
        /// </param>
        /// <param name="_target_workspace">
        /// <para>Target Workspace</para>
        /// <para>The workspace where all the objects will be written.</para>
        /// <para>将写入所有对象的工作区。</para>
        /// </param>
        public ImportS57ToGeodatabase(object _in_base_cell, object _target_workspace)
        {
            this._in_base_cell = _in_base_cell;
            this._target_workspace = _target_workspace;
        }
        public override string ToolboxName => "Maritime Tools";

        public override string ToolName => "Import S-57 To Geodatabase";

        public override string CallName => "maritime.ImportS57ToGeodatabase";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_base_cell, _target_workspace, _in_update_cells, _in_product_config, _output_workspace];

        /// <summary>
        /// <para>Input Base S-57 Cell</para>
        /// <para>The base cell file (*.000).</para>
        /// <para>基本单元格文件 （*.000）。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Base S-57 Cell")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_base_cell { get; set; }


        /// <summary>
        /// <para>Target Workspace</para>
        /// <para>The workspace where all the objects will be written.</para>
        /// <para>将写入所有对象的工作区。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_workspace { get; set; }


        /// <summary>
        /// <para>Update Cells</para>
        /// <para>Updates cell files (*.001 - *.999).</para>
        /// <para>更新单元格文件 （*.001 - *.999）。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Update Cells")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public List<object> _in_update_cells { get; set; } = null;


        /// <summary>
        /// <para>Product Configuration File</para>
        /// <para>The product configuration file to import.</para>
        /// <para>要导入的产品配置文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Product Configuration File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_product_config { get; set; } = null;


        /// <summary>
        /// <para>Output Workspace</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Workspace")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _output_workspace { get; set; }


        public ImportS57ToGeodatabase SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}